package pkg

import "context"

type VideoServiceImpl struct {
	GetSessionId        func(ctx context.Context) (string, error)                       `dubbo:"GetSessionId"`
	QueryVideoInfo      func(ctx context.Context) (VideoInfo, error)                    `dubbo:"queryVideoInfo"`
	QueryVideoInfo2     func(ctx context.Context, age string) (VideoInfo, error)        `dubbo:"queryVideoInfo"`
	QueryVideoWithParam func(ctx context.Context, req VideoQueryReq) (VideoInfo, error) `dubbo:"queryWithQo"`
}

func (v *VideoServiceImpl) Reference() string {
	return "VideoProvider"
}

type VideoInfo struct {
	Id   int64
	Name string
}

type VideoQueryReq struct {
	Id   int32
	Name string
}

func (VideoInfo) JavaClassName() string {
	return "com.musi.api.VideoInfo"
}

func (VideoQueryReq) JavaClassName() string {
	return "com.musi.api.VideoInfoReq"
}
